// version.go
package version

import "fmt"

// 在编译时可以通过 -ldflags 覆盖这些变量
var (
	GitCommit = "unknown"
	GitBranch = "unknown"
	Version   = "unknown"
)

func PrintVersion() {
	fmt.Printf("Version Info:\n")
	// 打印版本信息
	fmt.Printf("Version    : %s\n", Version)
	fmt.Printf("Git Branch : %s\n", GitBranch)
	fmt.Printf("Git Commit : %s\n", GitCommit)
}
